const SYSTEM = uni.getSystemInfoSync();
// console.log(system.statusBarHeight);
// 系统安全高度  微信小程序
export const getStatusBarHeight = () => SYSTEM.statusBarHeight || 15
// 系统胶囊高度  小程序
export const getTitleBatHeight = () => {
	if (uni.getMenuButtonBoundingClientRect) {
		let {
			top,
			height
		} = uni.getMenuButtonBoundingClientRect() || 0 
		let titleBatHeight = (top - getStatusBarHeight()) * 2 + height
		return titleBatHeight
	} else {
		return 50;
	}
}
// 高度的和
export const getNavBarHeight = () => getStatusBarHeight() + getTitleBatHeight()